package dao.impl;
import dao.Supplier_black_listDao;
import pojo.Supplier_black_list;
import util.DBHelper;

public class Supplier_black_listDaoimpl implements Supplier_black_listDao {
    DBHelper db=new DBHelper();
    @Override
    public int insertSupplier_black_list(Supplier_black_list supplier_black_list) {
        String sql="insert into  supplier_black_list values(?,?,?,?,?)";
        return db.updateTable(sql,supplier_black_list.getId(),supplier_black_list.getEnterprise_id(),supplier_black_list.getSupperlier_id(),supplier_black_list.getReason(),supplier_black_list.getUpdate_date());
    }

    @Override
    public int deleteSupplier_black_list(Supplier_black_list supplier_black_list) {
        return 0;
    }
}
